package com.zsh.weather.ln.app

import android.app.Application
import com.yechaoa.yutilskt.ActivityUtilKt
import com.yechaoa.yutilskt.LogUtilKt
import com.yechaoa.yutilskt.YUtilsKt
import com.zsh.weather.ln.extensions.DelegatesExt
class App : Application() {
    companion object {
        var instance: App by DelegatesExt.notNullSingleValue()
    }
    override fun onCreate() {
        super.onCreate()
        instance = this
        //初始化
        YUtilsKt.initialize(this);
        //设置打印开关
        LogUtilKt.setIsLog(true);
        //注册Activity生命周期
        registerActivityLifecycleCallbacks(ActivityUtilKt.activityLifecycleCallbacks);

    }
}